from django.urls import path
from . import views

urlpatterns = [
    path('classes/', views.ClassesViewSet.as_view({"get": "list", "post": "create"})),
    path('classes/<int:pk>/', views.ClassesViewSet.as_view({"get": "retrieve", "patch": "update"})),
    path('classes/state/', views.ClassesDescViewSet.as_view({"get": "get_state_info"})),
    path('classes/teach_method/', views.ClassesDescViewSet.as_view({"get": "get_teach_method"})),
    path('classes/school_time/', views.ClassesDescViewSet.as_view({"get": "get_school_time"})),
]
